package com.example.mybatisplusproject;

import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

public class Test<T> {
	public void testMethod(T t) {
		System.out.println(t);
	}
	
	public <T> T testMethod1(T t) {
		return t;
	}

	public static void main(String[] args) throws InterruptedException {
		Test<Integer> test = new Test<>();
		String a = test.testMethod1("a");

		ReentrantLock lock = new ReentrantLock();
		boolean b = lock.tryLock(1, TimeUnit.MILLISECONDS);
		Condition condition1 = lock.newCondition();
		condition1.await();
		condition1.signal();
	}
}